package com.leadingsoft.pwxk.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.leadingsoft.pwxk.dto.ProductMaterialDto;
import com.leadingsoft.pwxk.service.ProductMaterialService;

/**
 * @author: lipan 2018年5月17日
 * @description: ( 主要原辅材料及燃料信息 )
 * 
 */
@RestController
@RequestMapping("api/productMaterial")
public class ProductMaterialController {

	@Autowired
	private ProductMaterialService productMaterialService;

	@GetMapping("/{dataid}")
	ProductMaterialDto get(@PathVariable(value = "dataid") String dataid) {
		return productMaterialService.get(dataid);
	}

}
